package com.jackeys.piaems.dao.impl;

import com.jackeys.piaems.dao.CategoryDao;
import com.jackeys.piaems.dao.mapper.CategoryMapper;
import com.jackeys.piaems.entity.Category;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: CategoryDaoImpl
 * @Description: 类别持久层接口实现类
 * @Author: Jackeys
 * @Date: 2021-06-25 11:02
 * @Version: 1.0
 */
@Repository
public class CategoryDaoImpl implements CategoryDao {

    @Autowired
    private CategoryMapper categoryMapper;

    /**
    * @Name: getAllCategories
    * @Description: 获取所有类别
    * @Param: []
    * @return: java.util.List<com.jackeys.piaems.entity.Category>
    * @Author: Jackeys
    * @Date: 2021/6/25 11:03
    * @Version: 1.0
    */
    @Override
    public List<Category> getAllCategoryList() {
        return categoryMapper.getAllCategoryList();
    }
}
